﻿using System.Runtime.InteropServices;

namespace WirelessAccessPoint.InteropServices
{
    /// <summary>
    /// A DOT11_SSID structure contains the SSID of an interface.
    /// </summary>
    [StructLayout(LayoutKind.Sequential)]
    public struct DOT11_SSID
    {
        /// <summary>
        /// The length, in bytes, of the ucSSID array.
        /// </summary>
        public uint uSSIDLength;

        /// <summary>
        /// The SSID. DOT11_SSID_MAX_LENGTH is set to 32.
        /// </summary>
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
        public string ucSSID;
    }
}
